<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center myWalletPage_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub myWalletPage_fd0_0'>
					<view class='flex flex-wrap align-center myWalletPage_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  myWalletPage_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='myWalletPage_fd0_0_c1_c0'>我的法豆</text>
					</view>
					<view class='flex flex-wrap align-center justify-end myWalletPage_fd0_0_c0'>
					</view>
				</view>
			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<view class="flex flex-direction align-stretch benben-flex-layout myWalletPage_flex_1">
				<view class='flex align-stretch justify-between myWalletPage_fd1_0'>
					<view class='flex flex-direction flex-wrap align-center myWalletPage_fd1_0_c0'>
						<text class='myWalletPage_fd1_0_c0_c0'>可用余额</text>
						<text class='myWalletPage_fd1_0_c0_c1'>{{user_info.fadou}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center myWalletPage_fd1_0_c1' @click="popupShow1708755283358=true">
						<view class='flex flex-wrap align-center'>
							<text class='myWalletPage_fd1_0_c1_c0_c0'>冻结中</text>
							<text class='fu-iconfont2  myWalletPage_fd1_0_c1_c0_c1'>&#xE600;</text>
						</view>
						<text class='myWalletPage_fd1_0_c0_c1'>{{user_info.dong_fadou}}</text>
					</view>
					<view class='flex flex-direction flex-wrap align-center'>
						<text class='myWalletPage_fd1_0_c1_c0_c0'>总支出</text>
						<text class='myWalletPage_fd1_0_c0_c1'>{{user_info.zhichu_fadou}}</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center myWalletPage_fd1_1'>
					<button class='myWalletPage_fd1_1_c0' @click="nextpage">充值法豆</button>
					<button class='myWalletPage_fd1_1_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pages/qbgl/balanceDetail/balanceDetail`">消费明细</button>
				</view>
			</view>
			<benben-popup v-model="popupShow1708755283358" :mask="true" :mask-close-able="false" mode='center'>
				<!---flex布局flex布局开始-->
				<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myWalletPage_flex_2">
					<view class='flex flex-direction flex-wrap align-stretch myWalletPage_fd2_0'>
						<text class='myWalletPage_fd2_0_c0'>法豆冻结</text>
						<scroll-view class='myWalletPage_fd2_0_c1' :scroll-y='true'>
							<view class='flex benben-scroll flex align-center'>
								<jyf-parser class='myWalletPage_fd2_0_c1_c0' :html="dataDetails.content | richTextFormat">
								</jyf-parser>
							</view>
						</scroll-view>
					</view>
					<view class='flex flex-wrap align-center justify-center myWalletPage_fd2_1'>
						<image class='myWalletPage_fd2_1_c0' mode="aspectFit" src='https://paiaifalv.oss-cn-beijing.aliyuncs.com/images/53.png' @click="popupShow1708755283358=false"></image>
					</view>
				</view>
				<!---flex布局flex布局结束-->
			</benben-popup>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout">
				<view class='flex flex-direction align-stretch myWalletPage_fd3_0'>
					<view class='flex flex-wrap align-center'>
						<text class='myWalletPage_fd3_0_c0_c0'>最近7天消费记录</text>
					</view>
					<view class='flex flex-wrap align-center justify-between myWalletPage_fd3_0_c1' v-for="item in dataMessage">
						<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
							<text class='myWalletPage_fd3_0_c1_c0_c0'>{{item.type_name}}</text>
							<text class='myWalletPage_fd3_0_c1_c0_c1'>{{item.create_time}}</text>
						</view>
						<view class='flex flex-wrap align-center myWalletPage_fd3_0_c1_c1'>
							<text class='myWalletPage_fd3_0_c1_c1_c0' v-if="item.change_type==1">{{item.fadou}}</text>
							<text v-if="item.change_type==2">{{item.fadou}}</text>
						</view>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<benben-popup v-model="popupShow1702281253263" :mask="true" :mask-close-able="true" mode='center'>
				<!---flex布局flex布局开始-->
				<view class="flex benben-flex-layout flex-wrap align-center">
					<benben-calendar-diy mode='range' year-arrow-color='#666666' month-arrow-color='#666666'
						start-text=' ' end-text=' ' active-bg-color='rgba(53, 208, 134, 1)'
						range-bg-color='rgba(234, 250, 243, 1)' :change-title='true' :change-year='true'
						:change-month='true' class=" myWalletPage_fd4_0"></benben-calendar-diy>
				</view>

				<!---flex布局flex布局结束-->
			</benben-popup>
		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"popupShow1702281253263": false,//时间筛选
				"popupShow1708755283358": false,
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"time_start": "",
				"tabs": "0",
				"time_end": "",
				"dataMessage": [],
				user_info:"",//用户信息
				"dataDetails": {
					"aid": "",
					"name": "",
					"thumb_img": "",
					"content": "",
					"introduce": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.post641568f1b6f87()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.get_user_infoFunc();
			this.getListFunc()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//跳转充值
			nextpage(){
				uni.navigateTo({
					url:"/pages/qbgl/balanceRecharge/balanceRecharge"
				})
			},
			
			//法豆明细
			getListFunc() {
				this.minixPagingListsApi = global.apiUrls.get_userfadoulog_list;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					change_type:"0",
					page:"1",
					list_rows:100,
					time:"week",
				}
				this.listData = [];
				this.dataMessage = this.listData;
				this.pagingListToggle();
			},
			
			//获取会员详细信息
			async get_user_infoFunc() {
				//请求方法
				//数据验证
				let datauser_info = await this.$api.get(global.apiUrls.post5c78c4772da97, {
				});
				if (datauser_info.data.code != 1) {
					this.$message.info(datauser_info.data.msg);
					return
				}
				let infouser_info = datauser_info.data;
				this.user_info = infouser_info.data
			},
			
			//获取冻结信息
			post641568f1b6f87(){
				this.$api.post(global.apiUrls.post641568f1b6f87, {
					column_id:"22"
				}).then(res=>{
					if(res.data.code==1){
						this.dataDetails = res.data.data;
					}
				})
			},
			
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #eee;
		background-size: 100% auto;
	}

	.myWalletPage_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.myWalletPage_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.myWalletPage_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.myWalletPage_fd0_0_c0 {
		width: 120rpx;
	}

	.myWalletPage_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.myWalletPage_flex_1 {
		background: #FFFFFF;
		padding: 42rpx 0rpx 0rpx 0rpx;
	}

	.myWalletPage_fd1_1_c1 {
		border: 1px solid rgba(226, 226, 226, 1);
		background: #FFFFFF;
		border-radius: 8rpx;
		font-size: 28rpx;
		color: rgba(26, 26, 26, 1);
		width: 135rpx;
		height: 56rpx;
		line-height: 56rpx;
		margin: 0rpx 0rpx 0rpx 24rpx;
	}

	.myWalletPage_fd1_1_c0 {
		background: #26BF01;
		border-radius: 8rpx;
		font-size: 28rpx;
		width: 135rpx;
		height: 56rpx;
		line-height: 56rpx;
		color: var(--benbenFontColor3);
	}

	.myWalletPage_fd1_1 {
		margin: 40rpx 0rpx 0rpx 0rpx;
		padding: 15rpx 89rpx 16rpx 030rpx;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	.myWalletPage_fd1_0_c1_c0_c1 {
		color:#fa2033;
		font-size: 28rpx;
		padding-left: 20rpx;
	}

	.myWalletPage_fd1_0_c1_c0_c0 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
	}

	.myWalletPage_fd1_0_c1 {
		border-left: 1px solid rgba(238, 238, 238, 1);
		border-right: 1px solid rgba(238, 238, 238, 1);
		padding: 0rpx 100rpx 0rpx 100rpx;
	}

	.myWalletPage_fd1_0_c0_c1 {
		color: #333333;
		font-size: 40rpx;
		font-weight: 700;
		line-height: 57rpx;
		margin: 20rpx 0rpx 0rpx 0rpx;
	}

	.myWalletPage_fd1_0_c0_c0 {
		color: #9B9B9B;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
	}

	.myWalletPage_fd1_0_c0 {
		// border-right: 1px solid rgba(242, 242, 242, 1);
	}

	.myWalletPage_fd1_0 {
		padding: 0rpx 28rpx 0rpx 60rpx;
	}

	.myWalletPage_flex_2 {
		width: 540rpx;
	}

	.myWalletPage_fd2_1_c0 {
		width: 56rpx;
		height: 56rpx;
		border-radius: 28rpx 28rpx 28rpx 28rpx;
	}

	.myWalletPage_fd2_1 {
		margin: 48rpx 0rpx 0rpx 0rpx;
	}

	::v-deep .myWalletPage_fd2_0_c1_c0 {
		width: 100%;
	}

	.myWalletPage_fd2_0_c1 {
		touch-action: none;
		height: 30vh;
	}

	.myWalletPage_fd2_0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
		text-align: center;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.myWalletPage_fd2_0 {
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		padding: 28rpx 32rpx 41rpx 32rpx;
	}

	.myWalletPage_fd3_0_c1_c1_c0 {
		padding: 0rpx 5rpx 0rpx 0rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #01BF85;
	}

	.myWalletPage_fd3_0_c1_c1 {
		color: rgba(250, 32, 51, 1);
		font-weight: 500;
		font-size: 32rpx;
	}

	.myWalletPage_fd3_0_c1_c0_c1 {
		font-size: 24rpx;
		font-weight: 400;
		color: #666666;
		margin: 16rpx 0rpx 0rpx 0rpx;
	}

	.myWalletPage_fd3_0_c1_c0_c0 {
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
		padding: 0rpx 24rpx 0rpx 0rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.myWalletPage_fd3_0_c1 {
		border-bottom: 1px solid #eee;
		background: #FFFFFF;
		background-size: 100% auto !important;
		padding: 32rpx 32rpx 32rpx 32rpx;
	}

	.myWalletPage_fd3_0_c0_c0 {
		color: #7D7E80;
		font-size: 28rpx;
		font-weight: 400;
		padding: 0rpx 0rpx 24rpx 30rpx;
	}

	.myWalletPage_fd3_0 {
		padding: 20rpx 0rpx 0rpx 0rpx;
	}

	.myWalletPage_fd4_0 {
		background: #ffffff;
		width: 622rpx;
		border-radius: 24rpx;
		padding: 24rpx 24rpx 24rpx 24rpx;
	}
</style>